#!/bin/bash
DATADIR=`pwd`
ARG=$1
if [ ! -d $DATADIR ]; then
  mkdir -p $DATADIR;
fi
#--extract-genesis-json single_genesis.json
#--hard-replay-blockchain \
nodeos --config-dir $DATADIR/config --data-dir $DATADIR --http-validate-host=false ${ARG} \
>> $DATADIR"/nodeos.log" 2>&1 & \
echo $! > $DATADIR"/eosd.pid"